﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using StringFormateHelper;
namespace StringPlay
{
    public partial class RemoveType : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnCharacter_Click(object sender, EventArgs e)
        {
            lblCharacter.Text = new StringOperation().GetString(txtCharacter.Text, EnumCollection.StringFormat.RSpecialChar, EnumCollection.ActionType.Replace);
        }

        protected void btnNumber_Click(object sender, EventArgs e)
        {
            lblNumber.Text = new StringOperation().GetString(txtNumber.Text, EnumCollection.StringFormat.RNumber, EnumCollection.ActionType.Replace);
        }

        protected void btnAlphabet_Click(object sender, EventArgs e)
        {
            lblAlphabet.Text = new StringOperation().GetString(txtAlphabet.Text, EnumCollection.StringFormat.RAllAlphabet, EnumCollection.ActionType.Replace);
        }

        protected void btnUpperCase_Click(object sender, EventArgs e)
        {
            lblUpperCase.Text = new StringOperation().GetString(txtUpperCase.Text, EnumCollection.StringFormat.RUpperAlphaNumeric, EnumCollection.ActionType.Replace);
        }

        protected void btnLowerCase_Click(object sender, EventArgs e)
        {
            lblLowerCase.Text = new StringOperation().GetString(txtLowerCase.Text, EnumCollection.StringFormat.RLowerAlphaNumeric, EnumCollection.ActionType.Replace);
        }

        protected void btnOnlyUpperCase_Click(object sender, EventArgs e)
        {
            lblOnlyUpperCase.Text = new StringOperation().GetString(txtOnlyUpperCase.Text, EnumCollection.StringFormat.RUpperAlphabet, EnumCollection.ActionType.Replace);
        }

        protected void btnOnlyLowerCase_Click(object sender, EventArgs e)
        {
            lblOnlyLowerCase.Text = new StringOperation().GetString(txtOnlyLowerCase.Text, EnumCollection.StringFormat.RLowerAlphabet, EnumCollection.ActionType.Replace);
        }
    }
}